home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 3.8 KB | 239 lines | [TEXT/CWIE] |
- // DModelessTextData.cp -- data container class for Everything
-
- #include "DModelessTextData.h"
-
- #include <LFileStream.h>
-
-
- //----------
- DModelessTextData::DModelessTextData ()
- {
- LString::CopyPStr ("\pSmall", mSmall3);
- LString::CopyPStr ("\pLarge", mLarge3);
- mX12347 = 12345;
- mX12345e8 = 123.45e6;
- LString::CopyPStr ("\pPassword", mPassword3);
- GetLongDateTime (&mDate3);
- GetLongDateTime (&mTime3);
- LString::CopyPStr ("\pStyled", mStyled3);
- }
-
- //----------
- DModelessTextData::~DModelessTextData ()
- {
- }
-
- //----------
- void DModelessTextData::CopyFrom (
- DModelessTextData* inOther)
- {
- LString::CopyPStr (inOther->mSmall3, mSmall3);
- LString::CopyPStr (inOther->mLarge3, mLarge3);
- mX12347 = inOther->mX12347;
- mX12345e8 = inOther->mX12345e8;
- LString::CopyPStr (inOther->mPassword3, mPassword3);
- mDate3 = inOther->mDate3;
- mTime3 = inOther->mTime3;
- LString::CopyPStr (inOther->mStyled3, mStyled3);
- }
-
- //----------
- void DModelessTextData::ReadFromFile (
- LFileStream* inFile)
- {
- }
-
- //----------
- void DModelessTextData::WriteToFile (
- LFileStream* inFile)
- {
- }
-
-
- //----------
- StringPtr DModelessTextData::GetSmall3 (
- Str255 outPtr) const
- {
-
- if (outPtr != nil) {
- LString::CopyPStr (mSmall3, outPtr);
- }
- return (StringPtr)mSmall3;
- }
-
- //----------
- void DModelessTextData::SetSmall3 (
- ConstStringPtr inValue)
- {
- LString::CopyPStr (inValue, mSmall3);
-
- SignalDataChanged (idSmall3);
- }
-
- //----------
- void DModelessTextData::SetSmall3 (
- CharsHandle inValue)
- {
- SetPStr (mSmall3, sizeof (mSmall3), inValue);
-
- SignalDataChanged (idSmall3);
- }
-
-
- //----------
- StringPtr DModelessTextData::GetLarge3 (
- Str255 outPtr) const
- {
-
- if (outPtr != nil) {
- LString::CopyPStr (mLarge3, outPtr);
- }
- return (StringPtr)mLarge3;
- }
-
- //----------
- void DModelessTextData::SetLarge3 (
- ConstStringPtr inValue)
- {
- LString::CopyPStr (inValue, mLarge3);
-
- SignalDataChanged (idLarge3);
- }
-
- //----------
- void DModelessTextData::SetLarge3 (
- CharsHandle inValue)
- {
- SetPStr (mLarge3, sizeof (mLarge3), inValue);
-
- SignalDataChanged (idLarge3);
- }
-
-
- //----------
- SInt32 DModelessTextData::GetX12347 () const
- {
-
- return mX12347;
- }
-
- //----------
- void DModelessTextData::SetX12347 (
- SInt32 inValue)
- {
- mX12347 = inValue;
-
- SignalDataChanged (idX12347);
- }
-
-
- //----------
- double DModelessTextData::GetX12345e8 () const
- {
-
- return mX12345e8;
- }
-
- //----------
- void DModelessTextData::SetX12345e8 (
- double inValue)
- {
- mX12345e8 = inValue;
-
- SignalDataChanged (idX12345e8);
- }
-
-
- //----------
- StringPtr DModelessTextData::GetPassword3 (
- Str255 outPtr) const
- {
-
- if (outPtr != nil) {
- LString::CopyPStr (mPassword3, outPtr);
- }
- return (StringPtr)mPassword3;
- }
-
- //----------
- void DModelessTextData::SetPassword3 (
- ConstStringPtr inValue)
- {
- LString::CopyPStr (inValue, mPassword3);
-
- SignalDataChanged (idPassword3);
- }
-
- //----------
- void DModelessTextData::SetPassword3 (
- CharsHandle inValue)
- {
- SetPStr (mPassword3, sizeof (mPassword3), inValue);
-
- SignalDataChanged (idPassword3);
- }
-
-
- //----------
- LongDateRec DModelessTextData::GetDate3 () const
- {
-
- return mDate3;
- }
-
- //----------
- void DModelessTextData::SetDate3 (
- LongDateRec inValue)
- {
- mDate3 = inValue;
-
- SignalDataChanged (idDate3);
- }
-
-
- //----------
- LongDateRec DModelessTextData::GetTime3 () const
- {
-
- return mTime3;
- }
-
- //----------
- void DModelessTextData::SetTime3 (
- LongDateRec inValue)
- {
- mTime3 = inValue;
-
- SignalDataChanged (idTime3);
- }
-
-
- //----------
- StringPtr DModelessTextData::GetStyled3 (
- Str255 outPtr) const
- {
-
- if (outPtr != nil) {
- LString::CopyPStr (mStyled3, outPtr);
- }
- return (StringPtr)mStyled3;
- }
-
- //----------
- void DModelessTextData::SetStyled3 (
- ConstStringPtr inValue)
- {
- LString::CopyPStr (inValue, mStyled3);
-
- SignalDataChanged (idStyled3);
- }
-
- //----------
- void DModelessTextData::SetStyled3 (
- CharsHandle inValue)
- {
- SetPStr (mStyled3, sizeof (mStyled3), inValue);
-
- SignalDataChanged (idStyled3);
- }
-